package com.ruoyi.finance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.mapper.FinanceInfoMapper;
import com.ruoyi.finance.domain.FinanceInfo;
import com.ruoyi.finance.service.IFinanceInfoService;

/**
 * 财务Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-12
 */
@Service
public class FinanceInfoServiceImpl implements IFinanceInfoService 
{
    @Autowired
    private FinanceInfoMapper financeInfoMapper;

    /**
     * 查询财务
     * 
     * @param id 财务主键
     * @return 财务
     */
    @Override
    public FinanceInfo selectFinanceInfoById(Long id)
    {
        return financeInfoMapper.selectFinanceInfoById(id);
    }

    /**
     * 查询财务列表
     * 
     * @param financeInfo 财务
     * @return 财务
     */
    @Override
    public List<FinanceInfo> selectFinanceInfoList(FinanceInfo financeInfo)
    {

        return financeInfoMapper.selectFinanceInfoList(financeInfo);
    }

    /**
     * 新增财务
     * 
     * @param financeInfo 财务
     * @return 结果
     */
    @Override
    public int insertFinanceInfo(FinanceInfo financeInfo)
    {
        return financeInfoMapper.insertFinanceInfo(financeInfo);
    }

    /**
     * 修改财务
     * 
     * @param financeInfo 财务
     * @return 结果
     */
    @Override
    public int updateFinanceInfo(FinanceInfo financeInfo)
    {
        return financeInfoMapper.updateFinanceInfo(financeInfo);
    }

    /**
     * 批量删除财务
     * 
     * @param ids 需要删除的财务主键
     * @return 结果
     */
    @Override
    public int deleteFinanceInfoByIds(Long[] ids)
    {
        return financeInfoMapper.deleteFinanceInfoByIds(ids);
    }

    /**
     * 删除财务信息
     * 
     * @param id 财务主键
     * @return 结果
     */
    @Override
    public int deleteFinanceInfoById(Long id)
    {
        return financeInfoMapper.deleteFinanceInfoById(id);
    }
}
